<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<meta name="keywords" content="领券优惠,商家独家券,领券秒杀,领券商品分享">
	<meta name="description" content="每日为大家精选全网领券优惠信息，全天实时直播更新，专业团队筛选，拒绝低价劣质">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="renderer" content="webkit">
    <link href="/Public/dtkStyle/images/quan_common.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" type="text/css" href="/Public/dtkStyle/images/quan_index.css">
	<script type="text/javascript" src="/Public/dtkStyle/images/jquery-1.12.4.min.js"></script>
<title>领券秒杀直播，商家独家优惠券</title>

</head>
<body>


<div class="dtk-head clearfix">
	<div class="head-top">
		<div class="head-top-main">
			<div class="head-top-left clearfix">
				<span class="dtk-info fl">专注单品，极致转化！</span>
				<div id="header_login" class="fl">    <div class="login-in ">
        <span class="wel-msg">欢迎：<b><?php echo ($qun); ?>群群主</b></span>
        <span class="login-line">|</span>
        <div class="login-profile">
            <span>个人中心<i></i></span>
            <div class="login-option">
                <a href="#" target="_blank">我的推广</a>
                <a href="#" target="_blank">报表查询</a>
                <a href="#">注销</a>            </div>
        </div>
        <span class="login-line">|</span>
        
    </div>
    
    </div>

			</div>
			<div class="head-top-right">
				<span><p>公告：本站禁止向购买者提供返现形式推广.</p></span>
			</div>
		</div>
	</div>
	<div class="head-search">
		<div class="logo fl"><a href="#"><span></span></a></div>
		<div class="search fl">
			<div class="select-area">
				<span class="sear-select">
					标题	<i></i></span>
				
			</div>
			<form class="search-form-menu-mobile" action="" method="get" name="productForm">		
            <div class="search-input" style="padding-left: 63px;">
				 <input id="keywords" type="text" name="keywords" placeholder="请输入搜索内容" value="" >
            </div>		
			<a id="search_a_tag" href="javascript:productForm.submit();" class="search-submit fr"><span></span></a>
			</form>
			
			 </div>
		<div class="head-search-right fr"></div>
	</div>
	<div class="head-nav">
		<div class="nav-main">
			<div class="nav-list clearfix">
				<ul>
					<li class="no-border"><a href="/index.php/Home/Product/getAllData/qun/<?php echo ((isset($_GET['qun']) && ($_GET['qun'] !== ""))?($_GET['qun']):'2'); ?>">主页</a></li>
					<!--li class="cur">
						<a href="#">领券直播</a>
					</li>
					<li>
						<a href="#">实时榜单</a>
					</li-->
					<li>
						<a href="/index.php/Home/Reportform/getList/qun/<?php echo ((isset($_GET['qun']) && ($_GET['qun'] !== ""))?($_GET['qun']):'2'); ?>">查看报表<i class="sf_new"></i></a>
					</li>


				</ul>
			</div>
			<div class="nav-right">

			</div>
		</div>
	</div>
</div>
    <div class="banner-attention ">
        
	  <div style="padding:5px 0px;">
		<iframe src="/index.php/Home/Product/getZhaoshang/" scrolling="no" frameborder="0" width="100%" height="44px;"></iframe>
	  </div>
		
    </div>
<div class="main">
			<div class="main-top">
				<div class="goods-choice" style="display:none;">
					<span class="main-top-tit">已选条件&nbsp;&gt;&nbsp;</span>
					<div class="goods-choice-main clearfix">
						<div class="choice-item">
							<span class="choice-num">找到 <b>52377</b> 款商品</span>
						</div>
						<div class="choice-right">
							<a class="clear-choice" href="#" onClick="return false;"><i></i>清除所有条件</a>
						</div>
					</div>
				</div>

				<div class="goods-type-filter">

					<div class="goods-type">
						<span class="main-top-tit">商品分类：</span>
						<div class="goods-type-main">
							<span class="cur"><a href="?cid=0">全部<b> (52383) </b></a></span><span class=""><a href="?cid=1">女装<b> (5413) </b></a></span><span class=""><a href="?cid=9">男装<b> (2984) </b></a></span><span class=""><a href="?cid=10">内衣<b> (3453) </b></a></span><span class=""><a href="?cid=2">母婴<b> (6433) </b></a></span><span class=""><a href="?cid=3">化妆品<b> (2730) </b></a></span><span class=""><a href="?cid=4">居家<b> (11251) </b></a></span><span class=""><a href="?cid=5">鞋包配饰<b> (6201) </b></a></span><span class=""><a href="?cid=6">美食<b> (5291) </b></a></span><span class=""><a href="?cid=7">文体车品<b> (4945) </b></a></span><span class=""><a href="?cid=8">数码家电<b> (3682) </b></a></span><span class=" herald" style="margin-right: 0;"><i></i><a href="#">预告<b> (575) </b></a></span>						</div>
					</div>
					<!--div class="goods-filter">
						<form id="search_goods_form">
							<input type="hidden" id="pxvalue" value="zh" name="px">
							<span class="main-top-tit">高级筛选：</span>
							<div class="goods-filter-main clearfix">
								<div class="filter-tag">
									<input id="tqg_checkbox" type="checkbox" name="tqg_jhs" value="rush">
									<label id="tqg_checkbox_label" class="" ><i></i>淘抢购</label>
									<input id="jhs_checkbox" type="checkbox" name="tqg_jhs" value="calculate">
									<label id="jhs_checkbox_label" class="" ><i></i>聚划算</label>
								</div>
								<div class="filter-tag">
									<input id="tm_checkbox" type="checkbox" name="tm_jpmj" value="tm">
									<label id="tm_checkbox_label" class="" ><i></i>天猫</label>
									<input id="jpmj_checkbox" type="checkbox" name="tm_jpmj" value="jpmj">
									<label id="jpmj_checkbox_label" class=""><i></i>金牌卖家</label>
								</div>

								<div class="filter-tag">
									<input id="haitao_checkbox" type="checkbox" name="haitao" value="haitao">
									<label id="haitao_checkbox_label" class=""><i></i>海淘</label>
								</div>
								<div class="filter-tag">
									<input id="video_checkbox" type="checkbox" name="video" value="video">
									<label id="video_checkbox_label" class=""><i></i>视频</label>
								</div>
								<div class="goods-filter-main-right">
									<div class="price-area">
										价格 <input class="need_positive_float" id="jgqj1" type="text" name="jgqj1" placeholder="￥" value="">-<input class="need_positive_float" id="jgqj2" type="text" name="jgqj2" placeholder="￥" value="">
									</div>
									<div class="yj-area">
										佣金比例 ≥ <input class="need_positive_float" id="yjqj" type="text" placeholder="%" name="yjqj" value="">
									</div>
									<div class="sale-area">
										销量 ≥ <input class="need_positive_float" id="xlqj" type="text" name="xlqj" value="">
									</div>
									<button type="submit" class="filter-submit">筛选</button>
								</div>
							</div>
						</form>
					</div>
				</div-->
				<!--div class="goods-pages">
					<div class="goods-pages-fil">
                        <span data-px="zh" class="pxclick cur"><a class="" href="javascript:void(0);">综合</a></span>
                        <span data-px="zx" class="pxclick "><i class="sf_new"></i><a class="" href="javascript:void(0);">最新</a></span>
                        <span data-px="sell" class="pxclick "><a class="" href="javascript:void(0);">销量</a></span>
                        <span data-px="lql" class="pxclick "><a class="" href="javascript:void(0);">领券量</a></span>
                        <span data-px="yjdown" class="pxclick "><a class="" href="javascript:void(0);">佣金比例</a></span>
                        <span data-px="jgup" class="pxclick "><a class="" href="javascript:void(0);">价格</a></span>                    </div>
					<div class="goods-pages-page clearfix" style="">
						<span class="pagebtn disabled pre-page"></span>
						<span class="page-num"><b>1</b>/524</span>
						<span class="pagebtn next-page"><a href="#"></a></span>
						</div>
				</div-->
			</div>
<div class="wrapper">



	<div class="goods-list clearfix">			
				
<?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($k % 2 );++$k;?><div id="goods-items_<?php echo ($list["goodsid"]); ?>" data_goodsid="<?php echo ($list["goodsid"]); ?>" class="goods-item ">
		<div class="goods-item-content">
			<div class="goods-img">
				<span class="goods-new"></span>	
				<a href="#" target="_blank">
					<img class="lazy" src="/Public/dtkStyle/images/download.gif"" data-original="/index.php/Home/Product/getImg/img/<?php echo ($list["goodsid"]); ?>" style="background: rgb(238, 238, 238); display: inline;">
				</a>
			
				<span id="quan_add_u_<?php echo ($list["goodsid"]); ?>" class="fl quan_add_u go_info" onClick="return false;" data-page="quanPage">
					<p>微博分享</p><span></span>	
				</span>
				
				<div id="kl<?php echo ($list["goodsid"]); ?>" style=" display:none;" onClick="get_kl(<?php echo ($qun); ?>,<?php echo ($list["goodsid"]); ?>);">获取淘口令</div>
				
				<div class="goods-img-line"></div>
				
				<div class="copy_text fr btn" data-clipboard-target="#copy-<?php echo ($list["goodsid"]); ?>" data-clipboard-action="copy"
				<?php if($list["fanskongling"] == ''): ?>onClick="apply_jihua(<?php echo ($list["goodsid"]); ?>);" <?php else: endif; ?> >
				复制文案

					<div class="copyText copyRight" style="top: -145px;" id="copy-<?php echo ($list["goodsid"]); ?>">
						<img src="/index.php/Home/Product/getImg/img/<?php echo ($list["goodsid"]); ?>" data-original="/index.php/Home/Product/getImg/img/<?php echo ($list["goodsid"]); ?>" id = "img<?php echo ($list["goodsid"]); ?>" ><br>
						<?php echo ($list["title"]); ?><br>
						<?php echo ($list["quan_price"]); ?>元优惠券 | 券后<?php echo ($list["price"]); ?>元<br>
						领券+下单:<a target="_blank" href="<?php echo ($list["sclick"]); ?>"><?php echo ($list["sclick"]); ?></a>
						<br><?php echo ($list["introduce"]); ?>
						<?php if($list["fanskongling"] == ''): else: ?>
							<br/>复制此信息打开手机淘宝APP即可购买<?php echo ($list["fanskongling"]); endif; ?>
						<div id="kouling<?php echo ($list["goodsid"]); ?>"></div>							
							
					</div>
						
				</div>
					
			</div>
			<div class="goods-info">
				<span class="goods-tit">
					<a href="#" target="_blank">
						<?php echo ($list["title"]); ?>
					</a>
				</span>
				<div class="goods-slider">
					<span class="slider"><em data-width="0%" style="width: 0%;"></em></span>
				</div>
				<div class="goods-qjy">
					<div class="goods-price">
					<span>券后价</span><p><b><i class="rmb-style">￥</i><?php echo ($list["price"]); ?></b></p>
					</div>
					<div class="goods-yj" title="">
						<span>
							推广	
						</span><p><?php echo ($list["commission"]); ?><b>%</b></p>
					</div>
				</div>
				<div class="goods-sale clearfix">
					<div class="goods-quan fl">
					<p>券<b><i class="rmb-style">￥</i><?php echo ($list["quan_price"]); ?></b></p>
					</div>
					<!--span class="fl">销量<b>3.2万</b></span-->
					<div class="tag clearfix">
						<i class="tag-ju"></i><i class="tag-tmall"></i><i class="tag-ddq"></i>
					</div>
				</div>
				<div class="type">
					<!--span class="margin-num">优惠券总数：40000</span--> 
				</div>
				
			</div>
		</div>
	</div><?php endforeach; endif; else: echo "" ;endif; ?>									
							
					
	</div>
			
			
		
			
			
			<div class="quan_page" style="">
				<div class="quan_page_main" style="	margin: 0 auto;display: 	inline-block;	">
				<?php echo ($page); ?>
				</div>
			</div>
  </div>
</div>


<div class="side-bar">
	<div class="side-bar-list">			
		<div class="side-bar-top side-bar-item">
			<a href="javascript:gotoTop();" class="scrollTop"><i></i><em>返回顶部</em></a>
		</div>
	</div>
</div>

<div style="background:#59a4d1; margin-top:20px; " class="footer">
	<div style="width:1200px; overflow:hidden;  margin: 10px auto 0;padding-top:10px;background:#59a4d1">
		<div class="bottome_last">
			© CopyRight 2011-2017&nbsp; 特省-开心买买买！！！
			
		</div>
	</div>
</div>

<div style="left: 0px; top: 0px; position: absolute; width: 29px; height: 27px; border: medium none; margin: 0px; padding: 0px; z-index: 2147483647; display: none;" class="sbi_search" id="sbi_camera_button"></div>
<script src="/Public/dtkStyle/images/lazyload.js"></script>
<script type="text/javascript" charset="utf-8">
	$(function() {
		$("img.lazy").lazyload({
 			 effect:'fadeIn',
		});
		
	});
</script>
<script type="text/javascript" src="/Public/dtkStyle/images/top.js"></script>
<link rel="stylesheet" href="/Public/js/layer/skin/default/layer.css" id="layui_layer_skinlayercss">
<script type="text/javascript" src="/Public/js/layer/layer.js"></script>
<script type="text/javascript" src="/Public/dtkStyle/images/clipboard.min.js"></script>

    <script>
    var clipboard = new Clipboard('.btn');

        clipboard.on('success', function(e) {
           	layer.msg('复制了', {icon: 1});
            e.clearSelection();
			console.log(e);
        });

        clipboard.on('error', function(e) {
            layer.msg('出错了', {icon: 5});
            e.clearSelection();
			console.log(e);
        });


	
    </script>

<script language="javascript" type="text/javascript">
$(document).ready(function(){
 		
	$(".copy_text").mouseover(function(){
	  var obj = $(this);
		resetleft(obj.find('.copyText'));
	});
	
});

function get_kl(qunid,goodsid)
{
	 var timestamp =Date.parse(new Date());	
 $.ajax(
    {
        type: 'post',
        url: '/index.php/Home/Ajax/getKouling',
        cache:false,
        dataType: 'json',
        data: {'qunid':qunid,"goodsid": goodsid,"clicktime":timestamp},
        async: false,
        beforeSend:function()
        {//触发ajax请求开始时执行
            //$("p").append("--马上提交--");
        },                
        success: function (msg, textStatus) 
        {//有数据返回时
            //alert(msg.result);
			if(msg.result==1)
            {
				$("#kouling"+msg.info).html("<br/>复制此信息打开手机淘宝APP即可购买"+msg.msgs);
				//二维码请求1.0版本
				//$("#img"+msg.info).attr("src","/index.php/Home/Product/getImg?img="+msg.info+"&kl="+msg.msgs);
				//二维码请求1.1版本
				//$("#img"+msg.info).attr("src","/index.php/Home/Product/getImgAndQr?img="+msg.info+"&qunid="+qunid+"&goodsid="+goodsid);
            }
            else
            {
               $("#kouling"+msg.info).html("获取失败");              
            }
        },
        error:function (textStatus) 
        {//网络繁忙 错误
           //$("p").append("--网络繁忙--错");                  
        },
        complete: function(msg, textStatus)
        { //ajax请求完成时执行                 
            if(msg.result==1)
            {
              // $("p").append("--请求完成时执行--");   
            }
        }                
    });  
}
function apply_jihua(goodsid)
{
	 $('#kl'+goodsid).click(); 
	 $.ajax(
		{
			type: 'post',
			url: '/index.php/Home/Ajax/jihuaCommission',
			cache:false,
			dataType: 'json',
			data: {"goodsid": goodsid},
			async: false,
			beforeSend:function()
			{//触发ajax请求开始时执行
			},                
			success: function (msg, textStatus) 
			{//有数据返回时
			//alert(msg.info);
				if(msg.result==1)
				{
					$("#ifCommission").attr("src","http://www.cc8w.com/indexdacc8w.php?r=p/d&id=" + msg.info);
				}
				else
				{
				   //$("#kouling"+msg.info).html("获取失败");              
				}
			},
			error:function (textStatus) 
			{//网络繁忙 错误             
			},
			complete: function(msg, textStatus)
			{ //ajax请求完成时执行                 
				if(msg.result==1)
				{
				}
			}                
		}); 
}

    //设置复制内容框显示方向
    function resetleft(obj) {
		var divLeft = obj.offset().left;
		var webbrowserWidth = $(window).width();
		
		if((webbrowserWidth-divLeft)>300)
		{
            obj.removeClass('copyLeft');
            obj.addClass('copyRight');
            //obj.css({'top':copyTextTop});
	
		}else{
            obj.removeClass('copyRight');
            obj.addClass('copyLeft');
           // obj.css({'top':copyTextTop});
        }
		
//        var parL = obj.parents('.goods-item').offset().left,
//            parW = obj.parents('.goods-item').width(),
//            parH = obj.prev('.goods-item-content').outerHeight(),
//            selfW = obj.outerWidth(),
//            selfH = obj.parent().outerHeight(),
//
//            copyH = obj.outerHeight();
//            //复制容器的宽度
//                if(parH > 450 ){
//                    //榜单
//                    parW -= 15;
//                }
//        var copyTextTop = parseInt((selfH - copyH + 12)/2);
//        if(parW + parL + selfW > $(document).width()){
//            obj.removeClass('copyRight');
//            obj.addClass('copyLeft');
//            obj.css({'top':copyTextTop});
//        }else{
//            obj.removeClass('copyLeft');
//            obj.addClass('copyRight');
//            obj.css({'top':copyTextTop});
//        }

    }



</script>
<iframe id="ifCommission" src="" height="0" width="0" frameborder="0"></iframe>
</body></html>